package com.marketingcenter.service;

import com.marketingcenter.entity.Coupon;

/**
 * 优惠券服务接口
 */
public interface CouponService extends PromotionService<Coupon> {

    /**
     * 发放优惠券给用户
     */
    boolean distributeCoupon(Long couponId, Long userId);

    /**
     * 使用优惠券
     */
    boolean useCoupon(Long couponId, Long userId, Long orderId);

    /**
     * 查询用户已领取的优惠券
     */
    int countUserReceived(Long couponId, Long userId);

}